<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<script src="./vue.js">
		
	</script>
	<body>
		<div id="app">
			<ul>
				<li v-for="(item,index) of arr":key='index'>
					{{index+1}}-{{item.name}}-{{item.salary}}
				</li>
			</ul>
			<ul>
				<li v-for="(value,key,index) in person">
					{{index+1}}  {{key}}={{value}}
				</li>
			</ul>
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el:"#app",
				data:{
					arr:[{name:"yuan",salary:"10000"},
					{name:"hanhan",salary:"15000"}],
					person:{
						name:"hanmei",
						salary:"15000"
					}
				}
			})
		</script>
	</body>
</html>
